var path = require("path");
var webpack = require("webpack");

module.exports = {
    entry: {
        "allArticle":"./js/all-article.js",
        "articleEdit":"./js/article-edit.js",
        "articleEditO":"./js/article-edit-o.js",
        "articleAdd":"./js/article-add.js",
        "userArticle":"./js/user-articles.js",
        "myInfo":"./js/my-info.js",
        "login":"./js/login.js",
        "modifyInfo":"./js/modify-info.js",
    },
    output: {
        path:"./dist",
        filename: "[name].bundle.js"
    },
    module: {
        rules: [{
            test: /\.js$/,

            exclude: /(node_modules|bower_components)/,
            loader: 'babel-loader',
            options: {
                presets: ['es2015']
            }
        }]
    }
};
